<template>
<view>
<block v-if="copyright&&(copyright.icon||copyright.text)">
    <view @tap="naveClick" data-open_type="tel" :data-tel="copyright.phone?copyright.phone:contact_tel" style="padding: 24rpx" v-if="copyright.is_phone==1">
        <view style="text-align: center;font-size: 0;">
            <image mode="aspectFit" :src="copyright.icon" style="height: 60rpx;width: 240rpx" v-if="copyright.icon"></image>
        </view>
        <view style="text-align: center;line-height: 1">
            <text style="color: rgba(0,0,0,.3);font-size: 9pt;" v-if="copyright.text">{{copyright.text}}</text>
        </view>
    </view>
    <view style="padding: 24rpx" v-else-if="copyright.open_type=='wxapp'">
        <view style="text-align: center;font-size: 0;">
            <image @tap="openWxapp" :data-url="copyright.url" mode="aspectFit" :src="copyright.icon" style="height: 60rpx;width: 240rpx" v-if="copyright.icon"></image>
        </view>
        <view style="text-align: center;line-height: 1">
            <text @tap="openWxapp" :data-url="copyright.url" style="color: rgba(0,0,0,.3);font-size: 9pt;" v-if="copyright.text">{{copyright.text}}</text>
        </view>
    </view>
    <view style="padding: 24rpx" v-else-if="copyright.open_type=='navigate'">
        <view style="text-align: center;font-size: 0;">
            <navigator style="display: inline-block" :url="copyright.url">
                <image mode="aspectFit" :src="copyright.icon" style="height: 60rpx;width: 240rpx" v-if="copyright.icon"></image>
            </navigator>
        </view>
        <view style="text-align: center;line-height: 1">
            <navigator style="color: rgba(0,0,0,.3);font-size: 9pt;display: inline-block" :url="copyright.url" v-if="copyright.text">
                <text>{{copyright.text}}</text>
            </navigator>
        </view>
    </view>
    <view style="padding: 24rpx" v-else>
        <view style="text-align: center;font-size: 0;">
            <image mode="aspectFit" :src="copyright.icon" style="height: 60rpx;width: 240rpx" v-if="copyright.icon"></image>
        </view>
        <view style="text-align: center;line-height: 1">
            <text style="color: rgba(0,0,0,.3);font-size: 9pt;" v-if="copyright.text">{{copyright.text}}</text>
        </view>
    </view>
</block>
<block v-else>
    <view class="flex-y-center flex-x-center flex-col" style="padding: 20rpx" v-if="store.copyright||store.copyright_pic_url">
        <view v-if="store.copyright_pic_url">
            <navigator :url="store.copyright_url">
                <image mode="aspectFit" :src="store.copyright_pic_url" style="height: 60rpx;width: 240rpx"></image>
            </navigator>
        </view>
        <view style="color: rgba(0,0,0,.3);font-size: 9pt;" v-if="store.copyright">
            <navigator :url="store.copyright_url">
                <text>{{copyright.text}}</text>
            </navigator>
        </view>
    </view>
</block>
</view>
</template>

